package com.dt76.smallloanbackenduser.remote.xiaohao;

import com.dt76.smallloanbackenduser.hystrix.xiaohao.ContractHystrix;
import com.dt76.smallloanbackenduser.pojo.xiaohao.Contract;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="smallloan-backend-service",fallback = ContractHystrix.class)
public interface ContractRemote {

    @PostMapping(value = "/xiaohao/Contract/addContract",consumes = "application/json")
    int addContract(@RequestBody Contract contract);
}
